package com.example.springbootimport;

import com.example.springbootimport.config.TestBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class controller {
    @Autowired
    private TestBean testBean;

    @GetMapping("/")
    public String index() {
        return testBean.getName();
    }
}
